package com.albaba.designpattern.adapter.text_002;

import com.albaba.designpattern.adapter.text_001.Computer;
import com.albaba.designpattern.adapter.text_001.SDCard;
import com.albaba.designpattern.adapter.text_001.SDCardImpl;
import com.albaba.designpattern.adapter.text_001.TFCardImpl;
import com.albaba.designpattern.decorator.text_001.Component;

/**
 * @author zx
 * @version 1.0
 * @description TODO
 * @date 2025/2/20 22:08
 */
public class Client {

    public static void main(String[] args) {
        Computer computer = new Computer();
        SDCard sdCard = new SDCardImpl();
        String msg = computer.read(sdCard);
        System.out.println(msg);

        SDAdapterTF2 adapterTF = new SDAdapterTF2(new TFCardImpl());
        String msg1 = computer.read(adapterTF);
        System.out.println(msg1);
    }

}
